<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <link rel="stylesheet" href="__STATIC__/layui/css/layui.css">
    <link rel="stylesheet" href="__STATIC__/layui/css/view.css"/>
    <link rel="icon" href="/favicon.ico">
</head>
<body>
<h1>课程管理</h1>
<div class="layui-row">
    <div class="layui-card">
        <div class="layui-card-body">
            <div class="form-box">
                <div class="layui-form layui-form-item">
                    <form method="post" action="kccx" class="layui-form">
                        <div class="layui-inline">

                            <div class="layui-form-mid">课程名:</div>
                            <div class="layui-input-inline" style="width: 100px;">
                                <input name="name" type="text" autocomplete="off" class="layui-input">
                            </div>

                            <button type="submit" class="layui-btn layui-btn-blue">查询</button>

                        </div>
                        <form/>
                </div>
                <a class="layui-btn layui-btn-blue" href="kcadd"><i class="layui-icon">&#xe654;</i>新增</a>
                <table id="demo"></table>
            </div>
        </div>
    </div>
<table class="layui-table">

    <thead>
    <tr>
        <th>ID</th>
        <th>课程编号</th>
        <th>课程名</th>
        <th>课程简介</th>
        <th>课程人数/人</th>
        <th>课程收费/元</th>
        <th>课程图片</th>
        <th>操作</th>


    </tr>
    </thead>
    <tbody>
    {volist name="kcb" id="kcb"}
    <tr>
        <td>{$kcb.no}</td>
        <td>{$kcb.kcid}</td>
        <td>{$kcb.name}</td>
        <td>{$kcb.jianjie}</td>
        <td>{$kcb.num}</td>
        <td>{$kcb.jiage}</td>
        <td>{$kcb.src}</td>


        <td>
            <a href="{:url('houtai/kcedit',['no'=>$kcb.no])}" class="layui-btn layui-btn-sm">编辑</a>
            <a href="{:url('houtai/kcdel',['no'=>$kcb.no])}" class="layui-btn layui-btn-danger layui-btn-sm">删除</a>
        </td>
    </tr>
    {/volist}
    </tbody>


</table>
</body>
</html>